import request from '@/utils/request'

// 查询投票用户列表
export function listVoteUser(query) {
  return request({
    url: '/business/voteUser/list',
    method: 'get',
    params: query
  })
}

// 查询投票用户详细
export function getVoteUser(id) {
  return request({
    url: '/business/voteUser/' + id,
    method: 'get'
  })
}

// 新增投票用户
export function addVoteUser(data) {
  return request({
    url: '/business/voteUser',
    method: 'post',
    data: data
  })
}

// 修改投票用户
export function updateVoteUser(data) {
  return request({
    url: '/business/voteUser',
    method: 'put',
    data: data
  })
}

// 删除投票用户
export function delVoteUser(id) {
  return request({
    url: '/business/voteUser/' + id,
    method: 'delete'
  })
}
